﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.Data;

public partial class Admin_Congty_Capnhat_congty : System.Web.UI.Page
{
   

    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.IsPostBack == false)
        {
            CongTyBLL a = new CongTyBLL();
            String ten_qh = a.tenqh_theoIDcty(int.Parse(Request.QueryString["id"]));
            DataTable c = a.laycongtytheoID(int.Parse(Request.QueryString["id"]));
            Label1.Text = c.Rows[0][1].ToString();
            Label2.Text = c.Rows[0][2].ToString();
            Label3.Text = c.Rows[0][3].ToString();
            Label4.Text = c.Rows[0][4].ToString();
            Label5.Text = c.Rows[0][5].ToString();
            Label7.Text = c.Rows[0][7].ToString();
            Image1.ImageUrl = c.Rows[0][6].ToString();
            Label6.Text = ten_qh;
        } 
    }
}